﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ihongma.Web.UI.Page.photo_show" ValidateRequest="false" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="ihongma.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by ihongma Template Engine at 2013/6/26 17:12:39.
		本页面代码由ihongma模板引擎生成于 2013/6/26 17:12:39. 
	*/

	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
	const int channel_id = 10;

	templateBuilder.Append("<!DOCTYPE HTML>\r\n<!--[if lt IE 7]> <html class=\"no-js ie6 oldie\" lang=\"en\"> <![endif]-->\r\n<!--[if IE 7]>    <html class=\"no-js ie7 oldie\" lang=\"en\"> <![endif]-->\r\n<!--[if IE 8]>    <html class=\"no-js ie8 oldie\" lang=\"en\"> <![endif]-->\r\n<!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"zh-cn\"> <!--<![endif]-->\r\n<head>\r\n<meta charset=\"utf-8\" />\r\n<title>");
	templateBuilder.Append(model.title);
	templateBuilder.Append("|鸿马</title>\r\n<meta name=\"description\" content=\"高品质时尚、艺术、摄影、设计、插画类精美图片分享社区。\" />\r\n<meta name=\"keywords\" content=\"");
	templateBuilder.Append(model.title);
	templateBuilder.Append("，时尚图片、创意图片、图片设计、艺术图片、摄影照片、平面设计、精品图片、精美图片、唯美图片\" />\r\n<meta content=\"Copyright 2012 ihongma.com\" name=\"copyright\" />\r\n<link rel=\"shortcut icon\" href=\"/favicon.ico\">\r\n<link rel=\"stylesheet\" href=\"");
	templateBuilder.Append(config.templateskin);
	templateBuilder.Append("/css/global.css\" type=\"text/css\" media=\"screen\" />\r\n<script type=text/javascript src=\"");
	templateBuilder.Append(config.templateskin);
	templateBuilder.Append("/js/jquery-1.7.1.min.js\"></");
	templateBuilder.Append("script>\r\n<!--[if lt IE 9]><script src=\"");
	templateBuilder.Append(config.templateskin);
	templateBuilder.Append("/js/html5.js\"></");
	templateBuilder.Append("script><![endif]-->\r\n\r\n\r\n\r\n</head>\r\n\r\n<body>\r\n\r\n");

	templateBuilder.Append("<div class=\"t_container\">\r\n  <div class=\"t_topin\">\r\n    <h1><a href=\"/index.aspx\" title=\"鸿马网\">鸿马网</a></h1>    \r\n    <script type=\"text/javascript\">\r\n        $(document).ready(function () {\r\n            $(\".dropdown img.flag\").addClass(\"flagvisibility\");\r\n\r\n            $(\".dropdown dt a\").click(function () {\r\n                $(\".dropdown dd ul\").toggle();\r\n            });\r\n\r\n            $(\".dropdown dd ul li a\").click(function () {\r\n                var text = $(this).html();\r\n                $(\".dropdown dt a span\").html(text);\r\n                $(\".dropdown dd ul\").hide();\r\n                $(\"#result\").html(getSelectedValue(\"sample\"));\r\n            });\r\n\r\n            function getSelectedValue(id) {\r\n                return $(\"#\" + id).find(\"dt a span.value\").html();\r\n            }\r\n\r\n            $(document).bind('click', function (e) {\r\n                var $clicked = $(e.target);\r\n                if (!$clicked.parents().hasClass(\"dropdown\"))\r\n                    $(\".dropdown dd ul\").hide();\r\n            });\r\n\r\n\r\n            $(\"#flagSwitcher\").click(function () {\r\n                $(\".dropdown img.flag\").toggleClass(\"flagvisibility\");\r\n            });\r\n        });\r\nfunction submitTest() {\r\n            if ($(\"#d_search\").val() == \"\")\r\n            { return false; }\r\n            else {\r\n                return true;\r\n            }\r\n        }\r\n    </");
	templateBuilder.Append("script>\r\n    <div class=\"t_search_wrapper\">\r\n      <div class=\"t_search_bg\">\r\n        <div class=\"t_search\">\r\n        <form method=\"get\"  action=\"/search.aspx\"   onsubmit='return submitTest()'>\r\n          <div class=\"t_search_left\">\r\n            <div class=\"t_search_container\"><input id=\"d_search\" class=\"d_search_input\" name=\"keyword\" type=\"text\" /><input id=\"result\" name=\"type\" value=\"0\" type=\"hidden\" /></div>\r\n            <dl id=\"sample\" class=\"dropdown\">\r\n              <dt><a href=\"#\"><span>全站资源</span></a></dt>\r\n              <dd>\r\n                <ul> \r\n                <li><a href=\"#\">全站资源<span class=\"value\">0</span></a></li>\r\n                <li><a href=\"#\">网站设计<span class=\"value\">11</span></a></li>\r\n                <li><a href=\"#\">图片库<span class=\"value\">10</span></a></li>\r\n                <li><a href=\"#\">JS特效<span class=\"value\">13</span></a></li>\r\n                  <li><a href=\"#\">有趣的事<span class=\"value\">1</span></a></li>\r\n                </ul>\r\n              </dd>\r\n            </dl>\r\n          </div>\r\n          <div class=\"t_search_right\"><input class=\"t_button\" value=\"\" type=\"submit\" /></div>\r\n          </form>\r\n        </div>\r\n      </div>\r\n    </div>\r\n    <div class=\"tmlogin\">\r\n      <ul>\r\n      <li class=\"tcontact\"><a rel=\"nofollow\"  id=\"a15\" href=\"");
	templateBuilder.Append(linkurl("contact_sub",""));

	templateBuilder.Append("\">联系我们</a></li>\r\n      <li class=\"tlogin\"><a rel=\"nofollow\" href=\"#\">登录</a></li>\r\n      </ul>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<header>\r\n  <div class=\"i_menu\">\r\n    <div class=\"menu\">\r\n      <ul>\r\n   <li><a id=\"a0\"  href=\"/\" >鸿马首页</a></li>\r\n      <li><a id=\"a11\" href=\"");
	templateBuilder.Append(linkurl("design_list1",""));

	templateBuilder.Append("\">网站设计</a></li>\r\n       <li><a id=\"a14\" href=\"");
	templateBuilder.Append(linkurl("services",""));

	templateBuilder.Append("\">鸿马服务</a></li>\r\n      <li><a id=\"a13\" href=\"");
	templateBuilder.Append(linkurl("ajax_list1",""));

	templateBuilder.Append("\">JS特效</a></li>\r\n      <li><a id=\"a10\" href=\"");
	templateBuilder.Append(linkurl("photo_list1",""));

	templateBuilder.Append("\">图片库</a></li>\r\n      <li><a id=\"a1\" href=\"");
	templateBuilder.Append(linkurl("article_list1",""));

	templateBuilder.Append("\">有趣的事</a></li>\r\n\r\n\r\n </ul>\r\n    <script type=\"text/javascript\">\r\n        document.getElementById('a");
	templateBuilder.Append(channel_id);
	templateBuilder.Append("').className = 'active';\r\n    </");
	templateBuilder.Append("script>\r\n  \r\n    </div>\r\n    <div class=\"imenu_right\"><a href=\"");
	templateBuilder.Append(linkurl("content","about"));

	templateBuilder.Append("\">关于我们</a><a href=\"http://weibo.com/ihongma\"  target=\"_blank\">微博关注</a></div>\r\n  </div>\r\n</header>");


	templateBuilder.Append("\r\n<div class=\"inside\">\r\n  <ul class=\"c_menu\">\r\n   <li class=\"all\">\r\n                    <a  href=\"");
	templateBuilder.Append(linkurl("photo_list1",""));

	templateBuilder.Append("\">\r\n                        所有内容\r\n                    </a>\r\n                </li>\r\n   ");
	DataTable category_list = get_category_list(channel_id, 0);
	

	int cdr__loop__id=0;
	foreach(DataRow cdr in category_list.Rows)
	{
		cdr__loop__id++;


	templateBuilder.Append("\r\n    <li class=\"new\">\r\n     ");
	                                string classstr=model.category_id==Convert.ToInt32(cdr["id"])?"class='active'":"";
	                                

	templateBuilder.Append("\r\n      <a ");
	templateBuilder.Append(classstr);
	templateBuilder.Append(" href=\"");
	templateBuilder.Append(linkurl("photo_list",cdr["id"].ToString().Trim(),1));

	templateBuilder.Append("\" >" + cdr["title"].ToString().Trim() + "</a></li>\r\n    ");
	}	//end loop


	templateBuilder.Append("\r\n   \r\n    <!--<li class=\"all\"><a href=\"#\">所有图片</a></li>\r\n    <li class=\"new\"><a href=\"#\">Backgrounds</a></li>\r\n    <li class=\"new\"><a href=\"#\">Vectors</a></li>\r\n    <li class=\"new\"><a href=\"#\">UI elements</a></li>\r\n    <li class=\"new\"><a href=\"#\" class=\"active\">Icons</a></li>-->\r\n  </ul>\r\n  <div class=\"single_page_container\">\r\n    <h2 class=\"gradient_bg\">");
	templateBuilder.Append(model.title);
	templateBuilder.Append("</h2>\r\n    <div class=\"details_box\">\r\n      <div class=\"photo\">  \r\n \r\n ");
	 string str="";
	if(model.photo_albums!=null)
	{
	str=model.photo_albums[3].big_img;
	 

	templateBuilder.Append("\r\n       <a href=\"javascript:;\"><img src=\"");
	templateBuilder.Append(str);
	templateBuilder.Append("\" /></a>\r\n        "); }   

	templateBuilder.Append("</div>      \r\n</div>\r\n<div class=\"right_section\">\r\n	<div class=\"description_details\">\r\n		<p>\r\n			");
	templateBuilder.Append(model.title);
	templateBuilder.Append("\r\n		</p>\r\n		<div class=\"link_details\">\r\n			<a href=\"/tools/imgdow.ashx?InternalSysURL=");
	templateBuilder.Append(str);
	templateBuilder.Append("\">\r\n				下载\r\n			</a>\r\n		</div>\r\n	</div>\r\n</div>\r\n</div>\r\n</div>\r\n");

	templateBuilder.Append("<footer>\r\n  <div class=\"footercenter\">\r\n    <div class=\"usfrid\">\r\n      <h4>访问我们的好友</h4>\r\n      <ul><a href=\"http://www.microsoft.com/\" target=\"_blank\" class=\"fr_1\">微软</a><a href=\"http://feixin.10086.cn/\" target=\"_blank\" class=\"fr_2\">飞信</a><a href=\"http://www.bjhqlc.com/\" target=\"_blank\" class=\"fr_3\">华强联创</a><a href=\"http://www.canyin.com/\" target=\"_blank\" class=\"fr_4\">中国餐饮网</a><a href=\"http://www.baidu.com/\" target=\"_blank\" class=\"fr_6\">百度</a><a href=\"http://www.csdn.net/\" target=\"_blank\" class=\"fr_5\">csdn</a></ul>\r\n    </div>\r\n    <div class=\"custom_footer\">\r\n      <ul><a href=\"http://www.ihongma.com/services.aspx\">鸿马服务</a><a href=\"http://www.ihongma.com/contact_sub.aspx\">联系我们</a><a href=\"http://www.ihongma.com/content/about.aspx\">关于我们</a></ul>\r\n      <p><a href=\"http://www.ihongma.com/contact_sub.aspx#comment_form\">提交订制信息</a></p>\r\n    </div>\r\n  </div>\r\n  <div class=\"f_copyright\">Copyright &copy; 2013, Ihongma Inc., CN. All Rights Reserved.京ICP备12052092号<a href=\"/sitemap.xml\">sitemap</a>\r\n  <script type=\"text/javascript\">\r\n                                                                                            var _bdhmProtocol = ((\"https:\" == document.location.protocol) ? \" https://\" : \" http://\");\r\n                                                                                            document.write(unescape(\"%3Cscript src='\" + _bdhmProtocol + \"hm.baidu.com/h.js%3F9ac1b1deb9e42bde31e827b7416d12bd' type='text/javascript'%3E%3C/script%3E\"));\r\n</");
	templateBuilder.Append("script>\r\n</div>\r\n</footer>");


	templateBuilder.Append("\r\n\r\n\r\n</body>\r\n</html>");
	Response.Write(templateBuilder.ToString());
}
</script>
